@extends('layouts.app')

@section('content')
    <div class="content">
        <div class="header">
            <ul class="breadcrumb">
                <li><i class="fa fa-fw fa-cog"></i>组织管理</li>
                <li>单位基本情况</li>
            </ul>
        </div>
        <div class="main-content main-content2">
            {{--<h2 class="text-center content_tt">单位基本信息</h2>--}}
                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                <div class="row">
                    <br>
                    <div>
                        <!-- Nav tabs -->
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#tab1" aria-controls="tab" role="tab" data-toggle="tab">基本信息</a></li>
                            <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab">保卫人员</a></li>
                            <li role="presentation"><a href="#tab3" aria-controls="tab3" role="tab" data-toggle="tab">重点人员</a></li>
                            <li role="presentation"><a href="#tab4" aria-controls="tab4" role="tab" data-toggle="tab">重要部位</a></li>
                        </ul>

                        <!-- Tab panes -->
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="tab1">
                                <br>
                                <div class="col-md-5 ">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">所属组织</label>
                                            <div class="col-sm-10">
                                                <select class="form-control" name="area_id">
                                                    <option value="">请选择所属组织</option>
                                                    @foreach($org as $k=>$v)
                                                        <option value="{{$v->id}}" @if($re->area_id == $v->id) selected @endif>{{$v->name}}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5 ">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">单位名称</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->name}}" name="name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5 ">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">省市区</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->province}}{{$re->city}}{{$re->area}}" name="area">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">详细地址</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->address}}" name="house_number">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">企业性质</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->xingzhi}}" name="xingzhi">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">邮编</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->post_code}}" name="post_code">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">法人代表姓名</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->frdb_name}}" name="frdb_name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">法人代表职务</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->frdb_post}}" name="frdb_post">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">法人代表电话</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->frdb_phone}}" name="frdb_phone">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">分管保卫领导</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->fgbwld_name}}" name="fgbwld_name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫领导职务</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->fgbwld_post}}" name="fgbwld_post">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫领导电话</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->fgbwld_phone}}" name="fgbwld_phone">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫机构名称</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwjg_name}}" name="bwjg_name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫机构人数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwjg_num_of_peo}}" name="bwjg_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫专干(人)</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwjg_zhuangan}}" name="bwjg_zhuangan">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">护卫队人数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->hwd_num_of_peo}}" name="hwd_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保安数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->baoan_num_of_peo}}" name="baoan_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">保卫负责人</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwfzr_name}}" name="bwfzr_name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">负责人职务</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwfzr_post}}" name="bwfzr_post">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">负责人电话</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->bwfzr_phone}}" name="bwfzr_phone">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">职工总数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zhigong_num_of_peo}}" name="zhigong_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">在职人数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zaizhi_num_of_peo}}" name="zaizhi_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">固定资产</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->gdzc}}" name="gdzc">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">经营状况</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->jyzk}}" name="jyzk">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">要害部位数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zdyhbw_name}}" name="zdyhbw_name">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">要害部位人数</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zdyhbw_num_of_peo}}" name="zdyhbw_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">维稳工作对象</label>
                                            <div class="col-sm-10">
                                                <select class="form-control" name="zdwwgzdx">
                                                    <option value="有" @if($re->zdwwgzdx == '有') selected @endif>有</option>
                                                    <option value="无" @if($re->zdwwgzdx == '无') selected @endif>无</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">对象数量(人)</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zdwwgzdx_num_of_peo}}" name="zdwwgzdx_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">其中骨干(人)</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" value="{{$re->zdwwgzdx_gg_num_of_peo}}" name="zdwwgzdx_gg_num_of_peo">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">备注</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" name="remark" value="{{$re->remark}}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-5">
                                    <div class="form-horizontal">
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label">单位类型</label>
                                            <div class="col-sm-10">
                                                <select class="form-control" name="type">
                                                    <option value="">请选择单位类型</option>
                                                    <option value="1" @if($re->type == 1) selected @endif>党政机关</option>
                                                    <option value="2" @if($re->type == 2) selected @endif>卫生系统</option>
                                                    <option value="3" @if($re->type == 3) selected @endif>高校</option>
                                                    <option value="4" @if($re->type == 4) selected @endif>中小学幼儿园</option>
                                                    <option value="5" @if($re->type == 5) selected @endif>大型商场超市、金银珠宝店</option>
                                                    <option value="6" @if($re->type == 6) selected @endif>银行、金融机构</option>
                                                    <option value="7" @if($re->type == 7) selected @endif>加油（气）站</option>
                                                    <option value="8" @if($re->type == 8) selected @endif>其他单位</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div role="tabpanel" class="tab-pane" id="tab2">
                                <br>
                                <table class="table table-form table-striped table-bordered table-condensed">
                                    <thead>
                                    <tr>
                                        <th width="80">序号</th>
                                        <th>姓名</th>
                                        <th>性别</th>
                                        <th>年龄</th>
                                        <th>手机号</th>
                                        <th>身份证号</th>
                                        <th>文化程度</th>
                                        <th>政治面貌</th>
                                        <th>籍贯</th>
                                        <th>地址</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach ($baowei as $key=>$re)
                                        <tr>
                                            <td>{{ $key+1 }}</td>
                                            <td>{{ $re->name }}</td>
                                            <td>{{ $re->sex }}</td>
                                            <td>{{ $re->age }}</td>
                                            <td>{{ $re->phone }}</td>
                                            <td>{{ $re->id_number }}</td>
                                            <td>{{ $re->education }}</td>
                                            <td>{{ $re->political_status }}</td>
                                            <td>{{ $re->native_place }}</td>
                                            <td>{{ $re->address }}</td>
                                        </tr>
                                    @endforeach
                                    </tbody>
                                </table>
                            </div>

                            <div role="tabpanel" class="tab-pane" id="tab3">
                                <br>
                                <table class="table table-form table-striped table-bordered table-condensed">
                                    <thead>
                                    <tr>
                                        <th width="80">序号</th>
                                        <th>编号</th>
                                        <th>姓名</th>
                                        <th>性别</th>
                                        <th>年龄</th>
                                        <th>民族</th>
                                        <th>政治面貌</th>
                                        <th>列管原因</th>
                                        <th>列控时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach ($zhongdian as $key=>$re)
                                        <tr>
                                            <td>{{ $key+1 }}</td>
                                            <td>{{ $re->bianhao }}</td>
                                            <td>{{ $re->name }}</td>
                                            <td>{{ $re->sex }}</td>
                                            <td>{{ $re->age }}</td>
                                            <td>{{ $re->nation }}</td>
                                            <td>{{ $re->political_status }}</td>
                                            <td>{{ $re->lieguanyuanyin }}</td>
                                            <td>{{ $re->liekongshijian }}</td>
                                        </tr>
                                    @endforeach
                                    </tbody>
                                </table>
                            </div>

                            <div role="tabpanel" class="tab-pane" id="tab4">
                                <br>
                                <table class="table table-form table-striped table-bordered table-condensed">
                                    <thead>
                                    <tr>
                                        <th width="80">序号</th>
                                        <th>编号</th>
                                        <th>名称</th>
                                        <th>负责人</th>
                                        <th>确定要害依据</th>
                                        <th>人防条件</th>
                                        <th>物防条件</th>
                                        <th>技防条件</th>
                                        <th>安全制度</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach ($buwei as $key=>$re)
                                        <tr>
                                            <td>{{ $key+1 }}</td>
                                            <td>{{ $re->bianhao }}</td>
                                            <td>{{ $re->name }}</td>
                                            <td>{{ $re->fuzeren }}</td>
                                            <td>{{ $re->yiju }}</td>
                                            <td>{{ $re->renfangtiaojian }}</td>
                                            <td>{{ $re->wufangtiaojian }}</td>
                                            <td>{{ $re->jifangtiaojian }}</td>
                                            <td>{{ $re->anquanzhidu }}</td>
                                        </tr>
                                    @endforeach
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>

                </div>

                <div class="btn-toolbar list-toolbar list-toolbar2  ">
                    <a href="javascript:history.back(-1);" class="btn btn-back">返回</a>
                </div>
        </div>
    </div>
@stop